package com.intelligent.ispc.core.dto;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.intelligent.ispc.common.persistence.BaseEntity;

import java.util.List;

/**
 * Created by dmrj on 2015/10/29.
 */
public class ResourceDto extends BaseEntity {

    private String code;
    private String name;
    private String description;
    private String category;

    @JsonBackReference
    private List<RoleDto> roles;

    public List<RoleDto> getRoles() {
        return roles;
    }

    public void setRoles(List<RoleDto> roles) {
        this.roles = roles;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
}
